package com.atguigu.gmall.search.service;

import com.atguigu.gmall.model.search.Goods;
import com.atguigu.gmall.model.search.vo.SearchParamsVO;
import com.atguigu.gmall.model.search.vo.SearchResultVo;

public interface GoodsService {
    /**
     * 添加商品
     * @param goods
     */
    void save(Goods goods);

    /**
     * 删除商品
     * @param skuId
     */
    void delete(Long skuId);

    /**
     * 检索商品
     * @param param
     * @return
     */
    SearchResultVo search(SearchParamsVO param);

    /**
     * 设置商品点击量
     * @param skuId
     * @param hotScore
     */
    void incrHotScore(Long skuId, Long hotScore);
}
